package com.ruoyi.monitor.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 模型预测对象 pre_model
 * 
 * @author xzx
 * @date 2023-04-22
 */
@TableName("pre_model")
public class PreModel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 模型名称 */
    @Excel(name = "模型名称")
    private String name;

    /** 模型绝对路径 */
    @Excel(name = "模型绝对路径")
    private String modelPath;

    /** 上一次使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上一次使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;
    @TableField(exist = false)
    private String searchValue;

    @TableField(exist = false)
    private String createBy;
    @TableField(exist = false)
    private String updateBy;

    @TableField(exist = false)
    private Date updateTime;

    @TableField(exist = false)
    private String remark;

    @TableField(exist = false)
    private String params;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setModelPath(String modelPath) 
    {
        this.modelPath = modelPath;
    }

    public String getModelPath() 
    {
        return modelPath;
    }
    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("modelPath", getModelPath())
            .append("createTime", getCreateTime())
            .append("useTime", getUseTime())
            .toString();
    }
}
